/** 文件相关的数据库初始化 */
import { TAB_IMAGES } from "../config/common.js";

/** 初始化图片表 */
export const createImagesTable = db => {
	const sql = `
		create table if not exists '${TAB_IMAGES}'(
			 _id  varchar(255),
			 _pid  varchar(255), 
			 pid  int, 
			 id int primary key,
			docInfoId int,
			dataList varchar(255),
			projectId int,
			isDel int,
			fileName varchar(255),
			url text
		);
	`;
	return db.execute(sql);
}